package org.openrbac.rbac.service.impl;

import org.openrbac.rbac.entity.Dict;
import org.openrbac.rbac.mapper.AuthMapper;
import org.openrbac.rbac.mapper.DictDetailMapper;
import org.openrbac.rbac.mapper.DictMapper;
import org.openrbac.rbac.service.CatalogueService;
import org.openrbac.rbac.service.DictDetailService;
import org.openrbac.rbac.utils.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 梁富贵
 * @Date 2024/5/22
 **/
@Service
public class CatalogueServiceImpl implements CatalogueService {

    @Autowired
    private DictDetailService dictDetailService;

    @Autowired
    private AuthMapper authMapper;

    @Autowired
    private DictDetailMapper dictDetailMapper;
    @Autowired
    private DictMapper dictMapper;

    @Autowired
    private RedisUtil redisUtil;

    @Override
    public List<Dict> getCatalogue(List<String> names) {
        List<Dict> seconds = dictDetailService.getDictDetailsByMainNames(names);
        return seconds;
    }
}
